From c58ddc488282c9f018f0a22b78f7cf302c75d29b Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 25 Aug 2005 21:49:03 +0000 Subject: [PATCH] Netstumbler, geoniche: Explicitly init struct tm to zeros to hugh valgrind. --- geoniche.c | 2 +- netstumbler.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/geoniche.c b/geoniche.c index c44a94d59..b0c85be65 100644 --- a/geoniche.c +++ b/geoniche.c @@ -214,7 +214,7 @@ data_read(void) int icon; char *notes; char gid[6+1]; - struct tm tm; + struct tm tm = {0}; wpt = waypt_new(); if (!wpt) diff --git a/netstumbler.c b/netstumbler.c index 242fdb881..554d513b2 100644 --- a/netstumbler.c +++ b/netstumbler.c @@ -74,7 +74,7 @@ data_read(void) int stealth_num = 0, whitespace_num = 0; long flags = 0; int speed = 0, channel = 0; - struct tm tm; + struct tm tm = {0}; for(; fgets(ibuf, sizeof(ibuf), file_in);) { char *field; -- 2.30.2